import { Navigate } from "react-router";

import Home from "@/pages/home-page";
import LayoutApp from "@/layout";

const router: IRouteType.IRoute[] = [
  {
    path: "/",
    element: <LayoutApp />,
    meta: {
      pageTitle: "首页",
    },
    children: [
      {
        path: "",
        element: <Navigate to="/home" />,
      },
      {
        path: "/home",
        element: <Home />,
        meta: {
          pageTitle: "首页",
        },
      },
    ],
  },
];

export default router;
